package com.qf.contract.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.qf.contract.entity.FContract;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface FContractMapper extends MPJBaseMapper<FContract> {
    int batchInsert(@Param("list") List<FContract> list);

    /**
     * 数据恢复
     * 需传入用户id
     */
    @Update("update f_contract set contract_status = #{contractStatus}  where contract_id = #{contractId} ")
    int dataRecovery(FContract fContract);
    //    List <ContractRecordQueryOV> getContractRecordQuery();
//    int selectcontract();
}